/*********************/
/** ProcessRFID.java */
/*********************/
package atag.apps.mainApp;

import atag.runtime.DataItem;
import atag.runtime.DataPool;
import atag.runtime.NodeInfo;
import java.util.Hashtable;

public class ProcessRFID implements Runnable {

	private DataPool m_dataPool;

	private NodeInfo m_myState;
                
        private Hashtable inRoom = new Hashtable();
        
        private String currentRFID;

	/** Creates a new instance of ProcessRFID */
	public ProcessRFID(DataPool dp, NodeInfo myconfig) {
		m_dataPool = dp;
		m_myState = myconfig;
	}

	public void run() {
		/*Checking for each DataItem, to see which one was produced*/
		DataItem t_dataItem;
		if((t_dataItem = m_dataPool.getData(IDConstants.T_PROCESSRFID,
			IDConstants.D_RFID)) != null){
			RFID recvdRFID = (RFID) t_dataItem.core();
			this.handleRFIDProduced(recvdRFID);
		}
	}

   private void handleRFIDProduced(RFID r_RFID) {
        throw new RuntimeException("Should never be called from Free Spot");
    }

}
